<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%
String flag = (String)session.getAttribute("flag");
String usernmae = (String)session.getAttribute("username");
if (flag == null || flag !="ok" || flag !="admin" ||flag != "student")
{
response.sendRedirect("login.jsp");
}
else
{
out.print(usernmae);
out.print("欢迎你！");
out.print("<a href=login.jsp>重新登录</a>");
}
%>
